package com.sunday.pinxinghui.entity;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.List;

/**
 * Created by 刘涛 on 2017/8/18.
 * 购物车订单结算
 */

public class CartConfirm implements Serializable {


    /**
     * memberId : 1
     * receiveAddress : {"id":1,"provinceId":11,"cityId":175,"districtId":2145,"streetId":15399,"provinceName":"浙江省","cityName":"杭州市","districtName":"萧山区","streetName":"宁围镇","name":"Guoyang","mobile":"13173619585","address":"民和路国泰科技大厦","type":1}
     * productDetails : [{"productId":8,"productName":"大力水手菠菜","productImage":"http://ol-quan2017.oss-cn-shanghai.aliyuncs.com/imgs/ffbd84165c547a79691041fad6231eb8948963d3","score":20,"price":18,"num":1,"normal":"","normalId":null}]
     * canGetScore : null
     * totalFee : 18
     * score : 100
     * scoreAmount : 1
     * amount : 50000
     * totalNum : 0
     * payTotalFee : null
     * expressFee : 18.00
     * serviceFee : 8.00
     * sinceFee : 2.00
     */

    private long memberId;
    private Integer canGetScore;
    private BigDecimal totalFee;
    private int score;
    private BigDecimal scoreAmount;
    private BigDecimal amount;
    private int totalNum;
    private BigDecimal payTotalFee;
    private BigDecimal expressFee;
    private BigDecimal serviceFee;
    private BigDecimal sinceFee;
    private Address receiveAddress;
    private List<CartItem> productDetails;

    private int isFreePost;//普通产品是否包邮
    private BigDecimal specialExpressFee;
    private int isTotalFreePost;//整个订单金额是否达到包邮

    private ServicePlace  servicePointDto;


    public long getMemberId() {
        return memberId;
    }

    public void setMemberId(long memberId) {
        this.memberId = memberId;
    }

    public Address getReceiveAddress() {
        return receiveAddress;
    }

    public void setReceiveAddress(Address receiveAddress) {
        this.receiveAddress = receiveAddress;
    }

    public List<CartItem> getProductDetails() {
        return productDetails;
    }

    public void setProductDetails(List<CartItem> productDetails) {
        this.productDetails = productDetails;
    }

    public BigDecimal getTotalFee() {
        return totalFee;
    }

    public void setTotalFee(BigDecimal totalFee) {
        this.totalFee = totalFee;
    }

    public int getScore() {
        return score;
    }

    public void setScore(int score) {
        this.score = score;
    }

    public int getTotalNum() {
        return totalNum;
    }

    public void setTotalNum(int totalNum) {
        this.totalNum = totalNum;
    }


    public Integer getCanGetScore() {
        return canGetScore;
    }

    public void setCanGetScore(Integer canGetScore) {
        this.canGetScore = canGetScore;
    }

    public BigDecimal getScoreAmount() {
        return scoreAmount;
    }

    public void setScoreAmount(BigDecimal scoreAmount) {
        this.scoreAmount = scoreAmount;
    }

    public BigDecimal getPayTotalFee() {
        return payTotalFee;
    }

    public void setPayTotalFee(BigDecimal payTotalFee) {
        this.payTotalFee = payTotalFee;
    }

    public BigDecimal getExpressFee() {
        return expressFee;
    }

    public void setExpressFee(BigDecimal expressFee) {
        this.expressFee = expressFee;
    }

    public BigDecimal getServiceFee() {
        return serviceFee;
    }

    public void setServiceFee(BigDecimal serviceFee) {
        this.serviceFee = serviceFee;
    }

    public BigDecimal getSinceFee() {
        return sinceFee;
    }

    public void setSinceFee(BigDecimal sinceFee) {
        this.sinceFee = sinceFee;
    }

    public BigDecimal getAmount() {
        return amount;
    }

    public void setAmount(BigDecimal amount) {
        this.amount = amount;
    }

    public int getIsFreePost() {
        return isFreePost;
    }

    public void setIsFreePost(int isFreePost) {
        this.isFreePost = isFreePost;
    }

    public BigDecimal getSpecialExpressFee() {
        return specialExpressFee;
    }

    public void setSpecialExpressFee(BigDecimal specialExpressFee) {
        this.specialExpressFee = specialExpressFee;
    }

    public int getIsTotalFreePost() {
        return isTotalFreePost;
    }

    public void setIsTotalFreePost(int isTotalFreePost) {
        this.isTotalFreePost = isTotalFreePost;
    }

    public ServicePlace getServicePointDto() {
        return servicePointDto;
    }

    public void setServicePointDto(ServicePlace servicePointDto) {
        this.servicePointDto = servicePointDto;
    }
}
